package com.zzty.txj1.service.impl;

import com.zzty.txj1.dao.RestaurantPointDao;
import com.zzty.txj1.entity.RestaurantPoint;
import com.zzty.txj1.service.RestaurantPointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RestaurantPointServiceImpl implements RestaurantPointService {
    @Autowired
    private RestaurantPointDao restaurantPointDao;
    @Override
    public RestaurantPoint getRestaurantPointById(RestaurantPoint restaurantPoint) {
        RestaurantPoint restaurantPoint1=restaurantPointDao.getRestaurantPointById(restaurantPoint);
        return restaurantPoint1;
    }

    @Override
    public Integer addRestaurantpoint(RestaurantPoint restaurantPoint) {
        Integer count=restaurantPointDao.addRestaurantpoint(restaurantPoint);
        return count;
    }

    @Override
    public List<RestaurantPoint> getAllRestaurantpoint() {
        List<RestaurantPoint> restaurantPoints=restaurantPointDao.getAllRestaurantpoint();
        return restaurantPoints;
    }
}
